package com.epam.kulibaba.components.catalog.linkSpecialOffers;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import com.epam.kulibaba.components.Component;

public class LinkSpecialOffers extends Component {
	public static final String LINKTOSPECIALOFFERS = ".//div[@class='link']/a";
	@FindBy(xpath = LinkSpecialOffers.LINKTOSPECIALOFFERS)
	private WebElement linkToSpecialOffers;

	public WebElement getLinkToSpecialOffers() {
		return linkToSpecialOffers;
	}

	public LinkSpecialOffers getLinksBarToSpecialOffers(WebDriver driver) {
		LinkSpecialOffers catalogPages = PageFactory.initElements(driver,
				LinkSpecialOffers.class);
		return catalogPages;
	}
}
